<template>
  <div class="login-wrapper">
    <div class="login-bg" />
    <div class="login-content">
      <el-card class="login-card" shadow="hover">
        <router-view></router-view>
      </el-card>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped lang="less">
.login-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 100%, #f5f5f5 0%, #f5f5f5 100%);
  z-index: 0;
}

.login-content {
  position: relative;
  z-index: 1;
  width: 450px;
  max-width: 90%;
  animation: fade-in 0.8s ease-out;
  border: 1px solid #ececec;
  border-radius: 10px;
}

.login-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 40px;
}

.login-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.login-form {
  .register-box {
    justify-content: space-between;
  }
}

.login-btn {
  width: 100%;
  margin-top: 10px;
  background-color: #7c3aed;
  border-color: #7c3aed;
}

.login-links {
  display: flex;
  margin-top: 20px;
  font-size: 14px;
}

@keyframes fade-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}
</style>
